CMAKE_MINIMUM_REQUIRED(VERSION 2.8.3)

INCLUDE_DIRECTORIES(BEFORE ${PROJECT_SOURCE_DIR}/)

SET(TIMESTAMP Timestamp.cpp)
SET(BUFFER Buffer.cpp)
SET(CURRECT_THREAD CurrectThread.cpp)
SET(LOGGER Logger.cpp)
SET(CURRECT_PROCESS CurrectProcess.cpp)
SET(ASYNCLOGGER AsyncLogger.cpp)

ADD_LIBRARY(Base STATIC ${TIMESTAMP} ${BUFFER} ${CURRECT_THREAD} ${LOGGER} ${ASYNCLOGGER} ${CURRECT_PROCESS})

INSTALL(FILES Timestamp.h AsyncLogger.h BlockingQueue.h Buffer.h Callables.h CurrectProcess.h CurrectThread.h File.h FixedBuffer.h Logger.h noncopyable.h Singleton.h DESTINATION ${PROJECT_SOURCE_DIR}/include/Base)
INSTALL(TARGETS Base ARCHIVE DESTINATION ${PROJECT_SOURCE_DIR}/lib)